#!/usr/bin/python2
# -*- coding: utf-8 -*-

from PySide import QtGui
try:
    from lib.utils import tr
except:
    tr = lambda msg: msg

class MyErrorDialog(QtGui.QMessageBox):
    def __init__(self, parent = None):
        QtGui.QMessageBox.__init__(self, parent)
        self.setWindowTitle(tr('Error'))
        self.setIcon(self.Critical)
        self.addButton(tr('OK'), self.AcceptRole)

class MessageDialog(QtGui.QMessageBox):
    def __init__(self, parent = None):
        QtGui.QMessageBox.__init__(self, parent)
        self.setWindowTitle(u"")
        self.addButton(tr('Close'), self.AcceptRole)
